|
菜单位置 |
---|
Arch → Remove |
所属工作台 |
Arch |
默认快捷键 |
沒有 |
版本介紹 |
- |
参阅 |
Arch Add/zh-cn |
移除工具允许您执行两种操作:
建筑添加工具与本工具功能相反。
从墙体中去掉一个立方体,于是便留下了一个洞。
或者
参阅: Arch API 与 FreeCAD Scripting Basics。
removeComponents(objectsList, host=None)
objectsList
里的诸对象。host
对象,此函数将试图从host
中去掉与objectsList
里诸对象的交集。示例:
import FreeCAD, Draft, Arch
Line = Draft.makeWire([FreeCAD.Vector(0, 0, 0),FreeCAD.Vector(2000, 2000, 0)])
Wall = Arch.makeWall(Line, width=150, height=3000)
Box = FreeCAD.ActiveDocument.addObject("Part::Box", "Box")
Box.Length = 900
Box.Width = 450
Box.Height = 2000
FreeCAD.ActiveDocument.recompute()
Draft.rotate(Box, 45)
Draft.move(Box, FreeCAD.Vector(1000, 700, 0))
Arch.removeComponents(Box, Wall)
FreeCAD.ActiveDocument.recompute()